package com.shopmall.manager.mapper;

import com.shopmall.model.dto.product.CategoryBrandDto;
import com.shopmall.model.entity.product.Brand;
import com.shopmall.model.entity.product.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

// 分类品牌条件分页查询
@Mapper
public interface CategoryBrandMapper {
    List<CategoryBrand> findByPage(CategoryBrandDto categoryBrandDto);

    // 添加
    void save(CategoryBrand categoryBrand);

    // 根据分类id查询对应品牌数据
    List<Brand> findBrandByCategoryId(Long categoryId);
}
